/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-12-29 17:28:25
 */
import { RouteRecordRaw } from "vue-router";
import Layout from "@/layout/layout.vue";

const foundMusicRoute: RouteRecordRaw = {
  path: "/foundMusic",
  name: "foundMusic",
  meta: {
    name: "发现音乐",
  },
  component: Layout,
  redirect: '/foundMusic/foundMusic/recommend',
  children: [
    {
      path: "foundMusic",
      name: "foundMusic",
      meta: {
        name: "发现音乐",
      },
      component: () => import("@/views/foundMusic/foundMusic.vue"),
      children: [
        {
          path: "recommend",
          name: "recommend",
          meta: {
            name: "个性推荐",
          },
          component: () => import("@/views/foundMusic/recommend.vue"),
        },
        {
          path: "customized",
          name: "customized",
          meta: {
            name: "专属定制",
          },
          component: () => import("@/views/foundMusic/customized.vue"),
        },
        {
          path: "songList",
          name: "songList",
          meta: {
            name: "歌单",
          },
          component: () => import("@/views/foundMusic/songList.vue"),
        },
        {
          path: "rankList",
          name: "rankList",
          meta: {
            name: "排行榜",
          },
          component: () => import("@/views/foundMusic/rankList.vue"),
        },
        {
          path: "singer",
          name: "singer",
          meta: {
            name: "歌手",
          },
          component: () => import("@/views/foundMusic/singer.vue"),
        },
        {
          path: "newMusic",
          name: "newMusic",
          meta: {
            name: "最新音乐",
          },
          component: () => import("@/views/foundMusic/newMusic.vue"),
        },
        {
          path: "dailySongs",
          redirect: '/foundMusic/dailySongs'
        },
      ]
    },
    {
      path: "dailySongs",
      name: "dailySongs",
      meta: {
        name: "每日推荐",
      },
      component: () => import("@/views/foundMusic/dailySongs.vue"),
    },
  ],
};

export default foundMusicRoute;
